<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/includes/common-import.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>${systemName}</title>
<link href="${resPath}main/css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="${resPath}main/js/label.js"></script>
<script type="text/javascript" src="${resPath}main/js/jquery-1.8.3.min.js"></script>  
    <script>  
	    function login(){
        	if($("#loginName").val() == ""){
        		alert("账号不能为空！");
        		$('#loginName').focus(); 
        		return false; 
        	}
        	if($("#passwd").val() == ""){
        		alert("密码不能为空！");
        		$('#passwd').focus(); 
        		return false; 
        	}
        	$('#inputForm').submit();
        	return true;
	    }
    </script> 
</head>

<body>
<DIV id="ts_min_top">
	<div class="login_pic"><img src="${resPath}main/images/login_img.gif" width="714" height="107" /></div>
</DIV>
<form id="inputForm" class="form-horizontal" action="${basePath}index/userLogin" method="post" >
<DIV id="min_box">
	<div class="content">
    	<div class="log_inbox">
        	<div class="log_intop"></div>
            <div class="log_incenter">
            	<div class="turn_on" id="Title1_1" onclick="changeInfo(1,1)">用户登录</div>
            	<div class="shut_down" id="Title1_2" ></div>
                <div id="Content1_1" class="TechnoB">
                	<div class="float_box">
                    	<div class="log_input">
                        	<input name="loginName" type="text" value="" id="loginName" class="text_login user_name" placeholder="用户名"/>
                    	</div>
                        <div class="log_input">
                            <input type="text" value="" id="passwd" name="passwd" class="text_login pass_word" placeholder="密 码"/>  
                        </div>
                        <div class="log_input" style="position:relative;">
                            <select name="type" style="width:300px;height:35px;background:#FFF url(${resPath}main/images/log_in_input_bg.jpg) no-repeat 0 -70px;padding-left:44px;padding-right:60px;">
								<option value="2">学生</option>
								<option value="1">教师</option>
							</select>
                        </div>
                        <div class="log_input"><button type="button" class="ts_log_btn" name="save" onclick="login();">登 录</button></div>
                    </div>
                </div>
                
            </div>
            <div class="log_inright"><img src="${resPath}main/images/log_in_right.jpg" width="1" height="273" /></div>
            <div class="log_inbottom"></div>
        </div>
    </div>
</DIV>
</form>
<DIV id="ts_min_bottom"><A href="${basePath }login" target="_blank">>>>系统后台管理入口</A></DIV>
<DIV id="ts_min_bottom" style="color: red;">${MESSAGE }</DIV>
</body>
</html>

